home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-2.iso / os2 / gnucal.zip / INSTALL < prev    next >
Text File  |  1995-12-09  |  10KB  |  205 lines

  1. This is a generic INSTALL file for utilities distributions.
  2. Some features specific to `gcal' have been added.
  3.  
  4. To compile this package:
  5.  
  6. 0.  You can set your private/local/site depending options in the make variables
  7. DEFINES, DEFINES2 and DEFINES3.  Choose and set these options EITHER in the
  8. files "gcal_def.h" and "gcal_tai.h" OR in the appropriate template makefile
  9. `Makefile.in' (of which the configure script generates the site specific
  10. `Makefile') before compiling `gcal'; OR use the --enable-FEATURE /
  11. --disable-FEATURE arguments of configure (try:   configure --help
  12. for an overview)!  Inspect the file README for some more information.
  13. Look into file ct2gcal[.awk|.pl] too.  If the selected language is German,
  14. delete the `#' character before the `lang' variable in first lines of that
  15. files, i.e. un-comment this variable (this is not necessary if you use the
  16. Autoconf technology with given --enable-FEATURE / --disable-FEATURE arguments).
  17.  
  18. 1.  Configure the package for your system.  In the directory that this
  19. file is in, type `./configure'.  If you're using `csh' on an old
  20. version of System V, you might need to type `sh configure' instead to
  21. prevent `csh' from trying to execute `configure' itself. If you
  22. are using Ultrix, you might need to type `sh5 configure' to avoid
  23. bugs in /bin/sh. Note that 'sh -x configure' may give different results
  24. than 'sh configure', making it difficult to debug configure scripts.
  25.  
  26. The `configure' shell script attempts to guess correct values for
  27. various system-dependent variables used during compilation, and
  28. creates the Makefile(s) (one in each subdirectory of the source
  29. directory).  In some packages it creates a C header file containing
  30. system-dependent definitions.  It also creates a file `config.status'
  31. that you can run in the future to recreate the current configuration.
  32.  
  33. Running `configure' takes a minute or two.  While it is running, it
  34. prints some messages that tell what it is doing.  If you don't want to
  35. see the messages, run `configure' with its standard output redirected
  36. to `/dev/null'; for example, `./configure >/dev/null'.
  37.  
  38. To compile the package in a different directory from the one
  39. containing the source code, you must use a version of `make' that
  40. supports the VPATH variable, such as GNU `make'.  `cd' to the directory
  41. where you want the object files and executables to go and run
  42. `configure'.  `configure' automatically checks for the source code in
  43. the directory that `configure' is in and in `..'.  If for some reason
  44. `configure' is not in the source code directory that you are
  45. configuring, then it will report that it can't find the source code.
  46. In that case, run `configure' with the option `--srcdir=DIR', where
  47. DIR is the directory that contains the source code.
  48.  
  49. By default, `make install' will install the package's files in
  50. /usr/local/bin, /usr/local/lib, /usr/local/man, etc.  You can specify an
  51. installation prefix other than /usr/local by giving `configure' the option
  52. `--prefix=PATH'.  Alternately, you can do so by consistently giving a value
  53. for the `prefix' variable when you run `make', e.g.,
  54.       make prefix=/usr/gnu
  55.       make prefix=/usr/gnu install
  56.  
  57. You can specify separate installation prefixes for architecture-specific
  58. files and architecture-independent files.  If you give `configure' the
  59. option `--exec-prefix=PATH' or set the `make' variable `exec_prefix'
  60. to PATH, the package will use PATH as the prefix for installing programs
  61. and libraries.  Data files and documentation will still use the regular
  62. prefix.  Normally, all files are installed using the regular prefix.
  63.  
  64. Another `configure' option is useful mainly in `Makefile' rules for
  65. updating `config.status' and `Makefile'.  The `--no-create' option
  66. figures out the configuration for your system and records it in
  67. `config.status', without actually configuring the package (creating
  68. `Makefile's and perhaps a configuration header file).  Later, you can
  69. run `./config.status' to actually configure the package.  You can also
  70. give `config.status' the `--recheck' option, which makes it re-run
  71. `configure' with the same arguments you used before.  This option is
  72. useful if you change `configure'.
  73.  
  74. `configure' ignores any other arguments that you give it.
  75.  
  76. If your system requires unusual options for compilation or linking
  77. that `configure' doesn't know about, you can give `configure' initial
  78. values for some variables by setting them in the environment.  In
  79. Bourne-compatible shells, you can do that on the command line like
  80. this:
  81.       CC='gcc -traditional' DEFS=-D_POSIX_SOURCE ./configure
  82.  
  83. For csh compatible shells, you can do something like this:
  84.  
  85.       (setenv CC 'gcc -traditional' ; ./configure)
  86.  
  87. The `make' variables that you might want to override with environment
  88. variables when running `configure' are:
  89.  
  90. (For these variables, any value given in the environment overrides the
  91. value that `configure' would choose:)
  92. CC  C compiler program.
  93.   Default is `cc', or `gcc' if `gcc' is in your PATH.
  94. INSTALL  Program to use to install files.
  95.   Default is `install-sh' (in package), `cp' otherwise.
  96.   If you have an non-standard `install', use INSTALL="cp -p"
  97.  
  98. (For these variables, any value given in the environment is added to
  99. the value that `configure' chooses:)
  100. DEFS     Options configure has found, in the form `-Dfoo -Dbar ...'
  101. CFLAGS   Compiler options, such as `-O -g ...'
  102. LIBS     Libraries to link with, in the form `-lfoo -lbar ...'
  103.  
  104. If you need to do unusual things to compile the package, we encourage
  105. you to figure out how `configure' could check whether to do them, and
  106. mail diffs or instructions to the address given in the README so we
  107. can include them in the next release.
  108.  
  109. 2.  Type `make' to compile the package.  If you want, you can override
  110. the `make' variables CFLAGS and LDFLAGS like this:
  111.  
  112.  make CFLAGS=-O2 LDFLAGS=-s
  113.  
  114. 3.  The package comes with self-tests. If you want to run them,
  115. type `make check'.
  116.  
  117. 4.  Type `make install' to install programs, data files, and
  118. documentation.
  119.  
  120. The man pages are installed by default with an extension `.1' (one).
  121. If you want the extension `.l' (lower case L) use:
  122.  
  123.       make manext=l install
  124.  
  125. If you are using csh or tcsh, you must type `rehash' after `make install'
  126. to make sure that the command `gcal' will invoke the new executable.
  127.  
  128. 5.  You can remove the program binaries and object files from the
  129. source directory by typing `make clean'.  To also remove the
  130. Makefile(s), the header file containing system-dependent definitions
  131. (if the package uses one), and `config.status' (all the files that
  132. `configure' created), type `make distclean'.
  133.  
  134. The file `configure.in' is used as a template to create `configure' by
  135. a program called `autoconf'.  You will only need it if you want to
  136. regenerate `configure' using a newer version of `autoconf'.
  137.  
  138. 6.  In case `gcal' is compiled using libtermcap/libtermlib and should
  139. produce ugly runtime errors, we have to work around the Termcap bug.
  140. Reconfigure the package with additional "--disable-term" argument and
  141. create the binary again (`make -s'  or  `make -s installbin').
  142.  
  143. 7. For an overview of all Makefile targets, type `make help'.
  144.  
  145. 8.  Special targets
  146.  
  147. - For MSDOS, OS/2, Windows NT, VMS, Acorn, Atari, Amiga, Primos, use the
  148.   makefile(s) or command file(s) provided in the appropriate subdirectory and
  149.   edit the LIB, INCLUDE, []FLAGS and CC entries to reflect your local system.
  150.  
  151. - On MSDOS, Microsoft-C v5.0 is buggy in some cases and could die.
  152.   Don't use that compiler version, use version 5.1 or newer.
  153.  
  154. - On MSDOS, the library function `qsort()' of Microsoft-C v5.1 and v6.0 seems
  155.   to be realized with very poor performance.  If large numbers of fixed date
  156.   warnings messages are processed and these warning texts are internally
  157.   presorted in the resource file(s) except some very few ones, this `qsort()'
  158.   function becomes very busy and you have to wait a long time before all
  159.   sorting is done.  Avoid to use these Microsoft compilers, use Borland-C 3.1
  160.   or newer instead!
  161.  
  162. - On MSDOS, Zortech-C v2.14 is buggy in some cases.  Use a newer version.
  163.  
  164. - If your system is a pure BSD system but incorrectly links string.h to
  165.   strings.h, you may get undefined str* symbols. Try recompiling with
  166.       make clean
  167.       make CFLAGS="-USTDC_HEADERS -UHAVE_STRING_H"
  168.  
  169. - On Ultrix, /bin/sh is too buggy.  Use "sh5 configure" instead of "configure".
  170.  
  171. - On Xenix, some preprocessors do not define M_XENIX.  You may have to do:
  172.       DEFS='-DM_XENIX' ./configure
  173.  
  174. - On Xenix 2.3.2 for 286, do: make xenix_286
  175.  
  176. - On Coherent, do: make coherent
  177.  
  178. - On some versions of NeXT, either "cc -finline-functions" or "cc -O4"
  179.   is broken.  Use "cc -O" instead.
  180.  
  181. - On Solaris 2.1 for x86, the January 1993 "OEM" compiler release
  182.   generates bad code.  This is fixed in the June 1993 "FCS" release.
  183.  
  184. - On Solaris 2.4 use gawk or perl instead of nawk.
  185.  
  186. - On Sparc with SunOS 4.1.1 and the SC1.0 compiler, the optimizer
  187.   works up to -O3 but -O4 does not work.
  188.  
  189. - Some systems could use index() and rindex() instead of strchr()
  190.   and strrch().  If the linker is unable to detect these objects
  191.   in the standard libs, add "-lbsd" or "-lucb" to LIBS and recompile
  192.   the source.
  193.  
  194. - On dnix 5.3 2.2 cc version 2.37c is buggy.  Version 2.38d works.
  195.  
  196. - On an Alliant running Concentrix, cc (even without optimization)
  197.   generates incorrect code.  You have to use gcc.
  198.  
  199. - On Cray running CSOS 1.0 with compiler version dev-125, you must
  200.   compile with the flag "-hnoopt" to avoid an optimizer bug.
  201.  
  202. - On HPUX, configure can't find a correct install.  Use:
  203.  
  204.       INSTALL=/usr/local/bin/bsdinst ./configure
  205.